<#include "../common/layout.ftl"/>
<@layout>
<div class="well">
		<#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager'>
			<a class="btn btn-success" href="/newOrder/addTerminal/${cityId}"><i class="icon-user icon-white"></i>添加泊车地点</a>
		</#if>
  </div>
<div class="well">

	<table class="table table-bordered table-striped">
		<thead>
		  <tr>
			<th>航站楼id</th>
			<th>名称</th>
			<th>操作</th>
		  </tr>
		</thead>
		<tbody>
		<#list terminalList as terminal>
		  <tr>
			<td>
			   ${terminal.id!""}
			</td>
			<td>
			  ${terminal.terminal_name!""}
			</td>
			<td>
				<div class="btn-group">
					 <#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager'>
					 	<a class="btn btn-primary" href="/newOrder/editTerminal/${terminal.id}"><i class="icon-info-sign icon-white"></i> 修 改</a>
					 </#if>
					 <#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager'>
					 	<a class="btn btn-primary" href="/newOrder/deleteTerminal/${terminal.id}?cityId=${terminal.city_id}"><i class="icon-trash icon-white"></i> 删 除</a>
					 </#if>
				</div>
			</td>
		  </tr>
		</#list>
		</tbody>
	</table>  
</div>
          
</@layout>